package com.mbg17.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 测试报告表
 *
 * @TableName t_task_report
 */
@TableName(value = "t_task_report")
@Data
public class TaskReport extends BaseDomain implements Serializable {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 父测试记录id
     */
    @TableField(value = "parent_id")
    private Integer parentId;
    /**
     * 测试记录id
     */
    @TableField(value = "task_record_id")
    private Integer testRecordId;

    /**
     * 任务状态
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 测试报告
     */
    @TableField(value = "result")
    private String result;

    /**
     * 错误信息
     */
    @TableField(value = "error_msg")
    private String errorMsg;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public TaskReport() {
    }

    public TaskReport(Integer parentId, Integer testRecordId,String result) {
        this.parentId = parentId;
        this.testRecordId = testRecordId;
        this.result = result;
    }
}